package com.video.chat.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("messages")
@ApiModel(value="聊天记录", description="聊天记录表")
public class MessageEntity implements Serializable {
    private  static final long serialVersionUID = 1L;
    private Long id;
    private Long senderId; // 发送消息的用户
    private Long receiverId;// 接受消息的与用户
    private String content; // 消息内容
    private String isRead; //是否读取
    private String messageType; //消息类型
    private Long createdTime; //创建时间
}
